<template>
  <div class="dashboard-container">
    <div class="app-container">
      <!-- 自定义组件，标题 -->
      <PageTitle :show-before="true">
        <template v-slot:before>
          <h2>页面管理</h2>
        </template>
      </PageTitle>
      <!-- 数据表 -->
      <el-table
        v-loading="downloadLoading"
        ooltip-effect="dark"
        border
        :data="list"
        max-height="500px"
        style="margin-top: 20px"
        @selection-change="handleSelectionChange"
      >
        <el-table-column
          label="页面名称"
          align="center"
          width="width"
          prop="name"
          fixed
        />
        <el-table-column
          label="seo标题"
          align="center"
          prop="seo_title"
          fixed
        />
        <el-table-column
          label="缓存时长"
          align="center"
          prop="expire"
          width="130"
          fixed
        />
        <el-table-column width="150" align="center" label="操作" fixed="right">
          <template>
            <el-button type="primary" size="mini" @click="editBtn"
              >编辑</el-button
            >
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      editDialog: false,
      list: [
        {
          id: 1,
          name: "首页",
          alias: "index",
          enable_cache: 1,
          expire: 60,
          seo_title: "找工作  上仑传",
          seo_keywords: "",
          seo_description: "",
          params: '[{"name":"网站名称","value":"sitename"}]',
        },
        {
          id: 2,
          name: "职位列表页",
          alias: "joblist",
          enable_cache: 0,
          expire: 0,
          seo_title: "{jobcategory}{citycategory}{keyword}招聘列表",
          seo_keywords: "",
          seo_description: "",
          params:
            '[{"name":"网站名称","value":"sitename"},{"name":"搜索关键词","value":"keyword"},{"name":"筛选职位类别","value":"jobcategory"},{"name":"筛选地区","value":"citycategory"}]',
        },
        {
          id: 3,
          name: "职位详情页",
          alias: "jobshow",
          enable_cache: 1,
          expire: 120,
          seo_title: "{jobname} - {companyname}",
          seo_keywords: "",
          seo_description: "",
          params:
            '[{"name":"网站名称","value":"sitename"},{"name":"职位名称","value":"jobname"},{"name":"企业名称","value":"companyname"},{"name":"工作性质","value":"nature"},{"name":"职位类别","value":"category"},{"name":"工作地区","value":"district"}]',
        },
        {
          id: 4,
          name: "简历列表页",
          alias: "resumelist",
          enable_cache: 0,
          expire: 0,
          seo_title:
            "{jobcategory}{citycategory}{keyword}简历列表 - {sitename}",
          seo_keywords:
            "{jobcategory}{citycategory}{keyword}简历列表,{sitename}",
          seo_description:
            "{jobcategory}{citycategory}{keyword}简历列表,{sitename}",
          params:
            '[{"name":"网站名称","value":"sitename"},{"name":"搜索关键词","value":"keyword"},{"name":"筛选意向职位","value":"jobcategory"},{"name":"筛选意向地区","value":"citycategory"}]',
        },
        {
          id: 5,
          name: "简历详情页",
          alias: "resumeshow",
          enable_cache: 1,
          expire: 60,
          seo_title: "{fullname}的个人简历 -{sitename}",
          seo_keywords:
            "{fullname},{sex},{education},{experience},{district},{jobcategory}",
          seo_description: "{fullname},{specialty}",
          params:
            '[{"name":"网站名称","value":"sitename"},{"name":"姓名","value":"fullname"},{"name":"性别","value":"sex"},{"name":"学历","value":"education"},{"name":"经验","value":"experience"},{"name":"期望工作地区","value":"district"},{"name":"期望工作类别","value":"jobcategory"},{"name":"自我描述","value":"specialty"}]',
        },
        {
          id: 6,
          name: "企业列表页",
          alias: "companylist",
          enable_cache: 0,
          expire: 0,
          seo_title: "{citycategory}{keyword}最新企业信息",
          seo_keywords: "",
          seo_description: "",
          params:
            '[{"name":"网站名称","value":"sitename"},{"name":"搜索关键词","value":"keyword"},{"name":"筛选行业类别","value":"trade"},{"name":"筛选地区","value":"citycategory"},{"name":"筛选企业性质","value":"nature"}]',
        },
        {
          id: 7,
          name: "企业详情页",
          alias: "companyshow",
          enable_cache: 1,
          expire: 240,
          seo_title: "{companyname}",
          seo_keywords: "",
          seo_description: "",
          params:
            '[{"name":"网站名称","value":"sitename"},{"name":"企业名称","value":"companyname"},{"name":"公司简介","value":"content"}]',
        },
        {
          id: 8,
          name: "资讯列表页",
          alias: "articlelist",
          enable_cache: 0,
          expire: 0,
          seo_title: "{cname} - {sitename}",
          seo_keywords: "{seo_keywords}",
          seo_description: "{seo_description}",
          params:
            '[{"name":"网站名称","value":"sitename"},{"name":"分类名称","value":"cname"},,{"name":"资讯关键词","value":"seo_keywords"},{"name":"资讯描述","value":"seo_description"}]',
        },
        {
          id: 9,
          name: "资讯详情页",
          alias: "articleshow",
          enable_cache: 0,
          expire: 0,
          seo_title: "{title} - {sitename}",
          seo_keywords: "{seo_keywords}",
          seo_description: "{seo_description}",
          params:
            '[{"name":"网站名称","value":"sitename"},{"name":"标题","value":"title"},{"name":"资讯关键词","value":"seo_keywords"},{"name":"资讯描述","value":"seo_description"}]',
        },
        {
          id: 10,
          name: "公告列表页",
          alias: "noticelist",
          enable_cache: 0,
          expire: 0,
          seo_title: "网站公告 - {sitename}",
          seo_keywords: "网站公告,{sitename}",
          seo_description: "网站公告,{sitename}",
          params: '[{"name":"网站名称","value":"sitename"}]',
        },
        {
          id: 11,
          name: "公告详情页",
          alias: "noticeshow",
          enable_cache: 0,
          expire: 0,
          seo_title: "{title} - {sitename}",
          seo_keywords: "{seo_keywords}",
          seo_description: "{seo_description}",
          params:
            '[{"name":"网站名称","value":"sitename"},{"name":"标题","value":"title"},{"name":"资讯关键词","value":"seo_keywords"},{"name":"资讯描述","value":"seo_description"}]',
        },
        {
          id: 12,
          name: "招聘会列表",
          alias: "jobfairlist",
          enable_cache: 0,
          expire: 0,
          seo_title: "招聘会 - {sitename}",
          seo_keywords: "",
          seo_description: "",
          params: '[{"name":"网站名称","value":"sitename"}]',
        },
        {
          id: 13,
          name: "招聘会详情",
          alias: "jobfairshow",
          enable_cache: 0,
          expire: 0,
          seo_title: "{title} - {sitename}",
          seo_keywords: "{title}",
          seo_description: "{title}",
          params:
            '[{"name":"网站名称","value":"sitename"},{"name":"招聘会名称","value":"title"}]',
        },
        {
          id: 14,
          name: "网络招聘会列表",
          alias: "jobfairollist",
          enable_cache: 0,
          expire: 0,
          seo_title: "网络招聘会 - {sitename}",
          seo_keywords: "",
          seo_description: "",
          params: '[{"name":"网站名称","value":"sitename"}]',
        },
        {
          id: 15,
          name: "网络招聘会详情",
          alias: "jobfairolshow",
          enable_cache: 0,
          expire: 0,
          seo_title: "{title} - {sitename}",
          seo_keywords: "{title}",
          seo_description: "{title}",
          params:
            '[{"name":"网站名称","value":"sitename"},{"name":"招聘会名称","value":"title"}]',
        },
      ],
    };
  },
  methods: {
    editBtn() {
      this.$router.push({
        name:'editPage'
      })
    }
  }
};
</script>

<style lang="scss" scoped></style>
